Optimal. Leaf size=55 \[ \frac{\sin ^4(c+d x)}{4 a d}-\frac{\cos ^5(c+d x)}{5 a d}+\frac{\cos ^3(c+d x)}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.148124, antiderivative size = 55, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {3872, 2835, 2564, 30, 2565, 14} \[ \frac{\sin ^4(c+d x)}{4 a d}-\frac{\cos ^5(c+d x)}{5 a d}+\frac{\cos ^3(c+d x)}{3 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2835
Rule 2564
Rule 30
Rule 2565
Rule 14
Rubi steps
\begin{align*} \int \frac{\sin ^5(c+d x)}{a+a \sec (c+d x)} \, dx &=-\int \frac{\cos (c+d x) \sin ^5(c+d x)}{-a-a \cos (c+d x)} \, dx\\ &=\frac{\int \cos (c+d x) \sin ^3(c+d x) \, dx}{a}-\frac{\int \cos ^2(c+d x) \sin ^3(c+d x) \, dx}{a}\\ &=\frac{\operatorname{Subst}\left (\int x^3 \, dx,x,\sin (c+d x)\right )}{a d}+\frac{\operatorname{Subst}\left (\int x^2 \left (1-x^2\right ) \, dx,x,\cos (c+d x)\right )}{a d}\\ &=\frac{\sin ^4(c+d x)}{4 a d}+\frac{\operatorname{Subst}\left (\int \left (x^2-x^4\right ) \, dx,x,\cos (c+d x)\right )}{a d}\\ &=\frac{\cos ^3(c+d x)}{3 a d}-\frac{\cos ^5(c+d x)}{5 a d}+\frac{\sin ^4(c+d x)}{4 a d}\\ \end{align*}
Mathematica [A] time = 0.334041, size = 42, normalized size = 0.76 \[ \frac{2 \sin ^6\left (\frac{1}{2} (c+d x)\right ) (21 \cos (c+d x)+6 \cos (2 (c+d x))+13)}{15 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.072, size = 49, normalized size = 0.9 \begin{align*}{\frac{1}{da} \left ({\frac{1}{3\, \left ( \sec \left ( dx+c \right ) \right ) ^{3}}}-{\frac{1}{2\, \left ( \sec \left ( dx+c \right ) \right ) ^{2}}}+{\frac{1}{4\, \left ( \sec \left ( dx+c \right ) \right ) ^{4}}}-{\frac{1}{5\, \left ( \sec \left ( dx+c \right ) \right ) ^{5}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.994888, size = 66, normalized size = 1.2 \begin{align*} -\frac{12 \, \cos \left (d x + c\right )^{5} - 15 \, \cos \left (d x + c\right )^{4} - 20 \, \cos \left (d x + c\right )^{3} + 30 \, \cos \left (d x + c\right )^{2}}{60 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.66676, size = 126, normalized size = 2.29 \begin{align*} -\frac{12 \, \cos \left (d x + c\right )^{5} - 15 \, \cos \left (d x + c\right )^{4} - 20 \, \cos \left (d x + c\right )^{3} + 30 \, \cos \left (d x + c\right )^{2}}{60 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2043, size = 131, normalized size = 2.38 \begin{align*} \frac{4 \,{\left (\frac{5 \,{\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - \frac{10 \,{\left (\cos \left (d x + c\right ) - 1\right )}^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac{30 \,{\left (\cos \left (d x + c\right ) - 1\right )}^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - 1\right )}}{15 \, a d{\left (\frac{\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} - 1\right )}^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]